﻿namespace azure_functions.Domain;

public interface IHitchhikerGuideToTheGalaxy
{
    string GetTheAnswerToLifeTheUniverseAndEverything();
}

public class HitchhikerGuideToTheGalaxy : IHitchhikerGuideToTheGalaxy
{
    readonly ISuperComputer _superComputer;

    public HitchhikerGuideToTheGalaxy(ISuperComputer superComputer)
    {
        _superComputer = superComputer;
    }

    public string GetTheAnswerToLifeTheUniverseAndEverything() =>
        _superComputer.CalculateTheAnswerToLifeTheUniverseAndEverything();
}